diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-02-06 13:58:43 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-02-06 13:58:43 -0700 |
commit | b6a2532da188088964cd6bf54da8c369d1608219 (patch) | |
tree | 86cc078f92ec9bf37a4a027ac70a1b9fc462e99d | |
parent | 307d91fbd303b3088587ae9c4c1102714654bc53 (diff) | |
download | stage-b6a2532da188088964cd6bf54da8c369d1608219.tar.gz stage-b6a2532da188088964cd6bf54da8c369d1608219.tar.bz2 stage-b6a2532da188088964cd6bf54da8c369d1608219.tar.xz stage-b6a2532da188088964cd6bf54da8c369d1608219.zip |
Fixes and updates to Bloodfields.
Uses lists where it should instead of dictionaries, better welcome
message.
-rw-r--r-- | bloodfields.stage | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/bloodfields.stage b/bloodfields.stage index 58a24a2..38e3370 100644 --- a/bloodfields.stage +++ b/bloodfields.stage | |||
@@ -1,4 +1,4 @@ | |||
1 | game.title = "Bloodfields"; | 1 | game.title = "Bloodfields: STAGE Edition"; |
2 | 2 | ||
3 | global | 3 | global |
4 | { | 4 | { |
@@ -17,44 +17,44 @@ situation <<start>> | |||
17 | { | 17 | { |
18 | setup | 18 | setup |
19 | { | 19 | { |
20 | global.enemyTypes = { | 20 | global.enemyTypes = [ |
21 | 1: { | 21 | { |
22 | 'name': 'snail', | 22 | 'name': 'snail', |
23 | 'action': 'oozes on', | 23 | 'action': 'oozes on', |
24 | 'hp': 3, | 24 | 'hp': 3, |
25 | 'attack': 2 | 25 | 'attack': 2 |
26 | }, | 26 | }, |
27 | 2: { | 27 | { |
28 | 'name': 'wolf', | 28 | 'name': 'wolf', |
29 | 'action': 'bites', | 29 | 'action': 'bites', |
30 | 'hp': 7, | 30 | 'hp': 7, |
31 | 'attack': 3 | 31 | 'attack': 3 |
32 | }, | 32 | }, |
33 | 3: { | 33 | { |
34 | 'name': 'snake', | 34 | 'name': 'snake', |
35 | 'action': 'strikes at', | 35 | 'action': 'strikes at', |
36 | 'hp': 3, | 36 | 'hp': 3, |
37 | 'attack': 3 | 37 | 'attack': 3 |
38 | } | 38 | } |
39 | }; | 39 | ]; |
40 | 40 | ||
41 | global.enemyMods = { | 41 | global.enemyMods = [ |
42 | 1: { | 42 | { |
43 | 'name': 'pathetic', | 43 | 'name': 'pathetic', |
44 | 'hp': 0, | 44 | 'hp': 0, |
45 | 'attack': 0 | 45 | 'attack': 0 |
46 | }, | 46 | }, |
47 | 2: { | 47 | { |
48 | 'name': 'sickly', | 48 | 'name': 'sickly', |
49 | 'hp': 3, | 49 | 'hp': 3, |
50 | 'attack': 1 | 50 | 'attack': 1 |
51 | }, | 51 | }, |
52 | 3: { | 52 | { |
53 | 'name': 'wimpy', | 53 | 'name': 'wimpy', |
54 | 'hp': 5, | 54 | 'hp': 5, |
55 | 'attack': 2 | 55 | 'attack': 2 |
56 | } | 56 | } |
57 | }; | 57 | ]; |
58 | 58 | ||
59 | player.hpMax = 10; | 59 | player.hpMax = 10; |
60 | player.hpCur = player.hpMax; | 60 | player.hpCur = player.hpMax; |
@@ -65,6 +65,9 @@ situation <<start>> | |||
65 | 65 | ||
66 | global.bJustTravelled = false; | 66 | global.bJustTravelled = false; |
67 | 67 | ||
68 | display('Welcome to Bloodfields: STAGE Edition!'); | ||
69 | display('Type "help" for help and more information at any time.'); | ||
70 | |||
68 | goto( <<field>> ); | 71 | goto( <<field>> ); |
69 | } | 72 | } |
70 | } | 73 | } |
@@ -91,13 +94,13 @@ function look() | |||
91 | 94 | ||
92 | function mkEnemy() | 95 | function mkEnemy() |
93 | { | 96 | { |
94 | eid = random( 1, 3 ); | 97 | eid = random( 0, 2 ); |
95 | global.enemy = global.enemyTypes[eid]; | 98 | global.enemy = global.enemyTypes[eid]; |
96 | 99 | ||
97 | mod = player.level; | 100 | mod = player.level - 1; |
98 | if mod > 3 then | 101 | if mod > 2 then |
99 | { | 102 | { |
100 | mod = 3; | 103 | mod = 2; |
101 | } | 104 | } |
102 | global.enemy['name'] = global.enemyMods[mod]['name'] + ' ' + | 105 | global.enemy['name'] = global.enemyMods[mod]['name'] + ' ' + |
103 | global.enemy['name']; | 106 | global.enemy['name']; |
@@ -134,6 +137,7 @@ function playerAttack() | |||
134 | { | 137 | { |
135 | player.xp -= 100; | 138 | player.xp -= 100; |
136 | player.level += 1; | 139 | player.level += 1; |
140 | player.attack += 1; | ||
137 | player.hpMax += integer(random(0.25,0.75)*player.hpMax); | 141 | player.hpMax += integer(random(0.25,0.75)*player.hpMax); |
138 | player.hpCur = player.hpMax; | 142 | player.hpCur = player.hpMax; |
139 | display("You have leveled! Welcome to level " + player.level ); | 143 | display("You have leveled! Welcome to level " + player.level ); |